def fei(n):
    if n == 0:
        return 0
    elif n == 1:
        return 1

    a, b = 0, 1
    for i in range(2, n + 1):
        c = a + b
        a, b = b, c
    return b


print("斐波那契数列前十项")
for i in range(10):
    print(fei(i), end='')
